﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<META name="keywords" content="$!config.keywords" />
<META name="description" content="$!config.description" />
<title>论坛管理 - 用户编辑</title>
<link rel="stylesheet" href="skin/gold/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="skin/gold/css/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="res/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="res/js/common.js"></script>
<script type="text/javascript" src="skin/gold/js/html5.js"></script>
<script type="text/javascript" src="skin/gold/js/ikeke.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="skin/gold/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('a,a:hover,div,span,img,li');
</script>
<![endif]-->
<script>
function doSave()
{
if(doCheck())
{
if(EditForm.cid.value!="")EditForm.parameter.value="update";
EditForm.submit();
}
}
function doCheck()
{
if(EditForm.username.value=="")
{
alert("用户名不能为空！");
EditForm.username.focus();
return false;
}
if(EditForm.email.value=="")
{
alert("用户电子邮箱不能为空！");
EditForm.email.focus();
return false;
}
if(EditForm.password.value=="")
{
alert("用户密码不能为空！");
EditForm.password.focus();
return false;
}
if(EditForm.password.value!=EditForm.password1.value)
{
alert("两次输入的密码不正确！");
EditForm.password.focus();
return false;
}
return true;
}
function doRefresh(obj,file)
{
if(file!="")
{
eval(obj+".value=file");
alert(EditForm.photo.value);
photoShow.innerHTML="<img src="+file+" align=absmiddle>";
}
}
function doUpload()
{
upFrame.EditForm.parentObj.value="EditForm.photo";
upFrame.doUpload();
}
</script>
</head>
<body>
<div id="container">
	<div id="asideback"></div>
	<div id="asideswitch"><div class="button"></div></div>
	#parse('/inc/left.htm')
	
	<div id="rightbody"><!-- 主体部分 -->
		<section id="wrapper">
			#parse('/inc/head.htm')
<table class="update-top">
  <tr>
    <td><strong><a href="/bbs/index.do">论坛管理</a> - 用户资料</strong><br>
    </td>
    <td><div align="right"></div></td>
  </tr>
</table>
<form name="EditForm" method="post" action="bbsuser.do">
 <input type="hidden" name="parameter" value="add">	     
 <input type="hidden" name="subCommand" value="">
 <input type="hidden" name="cid"   value="$!cid">	
 <table class="write1">
    <tr> 
      <td width="98%" height="433" valign="top"><div align="center">
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="150" align="right"><strong><font color="#666666">照片
                  <input name="photo" type="hidden" id="photo" value="$!photo">
                  ：</font></strong></td>
                <td><span id="photoShow">#if($photo)<img src="$!photo" align="absmiddle" width="120"/>#end</span>
			  <iframe  name="upFrame" style=" vertical-align:middle" ID="upFrame" src="bbsUpload.do" frameborder=0 scrolling=no width="180" height="25"></iframe> 　			  
			  <input type="button" name="Submit2" value="上传" onClick="doUpload();" style=" vertical-align:middle" ></td>
              </tr>
              <tr> 
                <td width="150" align="right"><span class="cn_12px"><strong><font color="#666666">用户名：</font></strong></span> 
                </td>
                <td class="cn_12px"><input name="username" type="text" id="username" value="$!username" size="25"> 
                  <font color="#FF0000">*</font></td>
              </tr>
			   <tr> 
                <td width="150" align="right"><span class="cn_12px"><strong><font color="#666666">用户密码：</font></strong></span> 
                </td>
                <td class="cn_12px"><input name="password" type="password" id="password" value="$!password" size="25"> 
                  <font color="#FF0000">*</font></td>
              </tr>
			   <tr> 
                <td width="150" align="right"><span class="cn_12px"><strong><font color="#666666">确认密码：</font></strong></span> 
                </td>
                <td class="cn_12px"><input name="password1" type="password" id="password1" value="$!password" size="25"> 
                  <font color="#FF0000">*</font></td>
              </tr>
			 
              <tr> 
                <td width="150" height="18" align="right"><span class="cn_12px"><strong><font color="#666666">Email地址：</font></strong></span> 
                </td>
                <td class="cn_12px"> <input name="email" type="text" id="email" value="$!email" size="25"> 
                  <font color="#FF0000">*</font></td>
              </tr>
              <tr> 
                <td width="150" align="right"><span class="cn_12px"><strong><font color="#666666">性别：</font></strong></span> 
                </td>
                <td class="cn_12px"> <select name="sex">
				<option value="">选择</option>
                    <option value="男" #if($sex.equals("男")) selected #end >男</option>
                    <option value="女"  #if($sex.equals("女")) selected #end>女</option>
                  </select>
                  <font color="#FF0000">*</font></td>
              </tr>
              <tr> 
                <td width="150" height="18" align="right"><span class="cn_12px"><strong><font color="#666666">手机：</font></strong></span> 
                </td>
                <td class="cn_12px"> <input name="tel" type="text" id="tel" value="$!tel" size="25">
                </td>
              </tr>
              <tr> 
                <td width="150" align="right"><span class="cn_12px"><strong><font color="#666666">QQ/MSN：</font></strong></span> 
                </td>
                <td class="cn_12px"> <input name="qq" type="text" id="qq" value="$!qq" size="25">
                </td>
              </tr>
              <tr> 
                <td width="150" align="right"><span class="cn_12px"><strong><font color="#666666">简介：</font></strong></span> 
                </td>
                <td class="cn_12px"> <textarea name="intro" cols="30" rows="5" id="intro">$!intro</textarea> 
                  <font color="#FF0000">*</font></td>
              </tr>
              <tr> 
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr align="center"> 
                <td colspan="2">
                	<input type="button" name="Submit" value="保存"  onClick="doSave();"> 
                	<input type="reset" name="Submit22" value="返回" onClick="history.go(-1);"></td>
              </tr>
  </table>
	</td>
    </tr></table>
</form>
		</section>
	</div>

	#parse('/inc/foot.htm')
</div>
</html>